<!-- 提料详情 -->
<top-title title="提料详情" icon="am-icon-user"></top-title>

<div class="am-padding-horizontal-sm am-padding-top ng-scope">
  <div class="am-panel-hd" style="background-color: #e5e8e1;"><h3 class="mh-margin-none am-text-truncate">
      提料详情</h3></div>
  <div class="am-panel am-panel-default ng-isolate-scope ng-valid">
      <ul class="am-list mh-margin-none">
      	<li class="am-g">
      	  <span class="am-u-sm-4">名称：</span><span class="am-u-sm-8">{{feed.name}}&nbsp;</span>
      		<span class="am-u-sm-4">编号：</span><span class="am-u-sm-8">{{feed.code}}&nbsp;</span>
      		<span class="am-u-sm-4">项目：</span><span class="am-u-sm-8">{{feed.gardenid}}&nbsp;</span>
      		<span class="am-u-sm-4">申请时间：</span><span class="am-u-sm-8">{{feed.regtime.time | date:'yyyy-MM-dd HH:mm'}}&nbsp;</span>
      		<span class="am-u-sm-4">当前状态：</span><span class="am-u-sm-8">{{feed.status}}&nbsp;</span>
      		<span class="am-u-sm-4">操作：</span><span class="am-u-sm-8"><a href style="color: blue;" ng-click="cancelReq()">取消申请</a></span>
      	</li>
        	<li class="am-g" ng-repeat="m in feed.mms track by $index">
          	<a class="mh-padding-none" ng-click="show($index)">
            		<!-- <span class="am-u-sm-10">m.</span> -->
            		<!-- <div class="am-u-sm-12" href ng-click="show($index)"> -->
  	     		<!-- <span class="am-u-sm-5">{{m.action_Name}}{{m.next_Name}}</span> -->
  	     		<!-- <span class="am-u-sm-2 mh-text-lightcolor am-icon-angle-right am-icon-sm am-text-right"style="margin:1rem 0;"></span> -->
  	     		<!-- 材料名称:{{m.material.name}}
            		</div> -->
              <div class="am-u-sm-10 am-padding-bottom-xs">
                <!-- <sapn class="am-u-sm-5 am-margin-bottom-xs am-text-truncate">提料名称：</sapn> -->
                <h3 class="am-u-sm-5">{{m.material.name}}</h3>
                <h4 class="mh-margin-none mh-text-lightcolor">{{m.material.regtime.time | date:'yyyy-MM-dd HH:mm'}}</h4>
              </div>
              <span class="am-u-sm-2 mh-text-lightcolor am-icon-angle-right am-icon-sm am-text-right"></span>
              <!-- <div style="clear: both;"></div> -->
          		<div id="{{$index}}" ng-show="detail==$index">
                <ul style="list-style-type: none">
                  <!-- <li><span class="am-u-sm-4">规格</span><span class="am-u-sm-8">{{m.material.spec}}</span></li> -->
                  <li><span class="am-u-sm-4">单位</span><span class="am-u-sm-8">{{m.material.unit}}&nbsp;</span></li>
                  <li><span class="am-u-sm-4">数量</span><span class="am-u-sm-8">{{m.material.count}}&nbsp;</span></li>
                  <!-- <li><span class="am-u-sm-4">到场时间</span><span class="am-u-sm-8">{{m.material.regtime.time | date:'yyyy-MM-dd HH:mm'}}&nbsp;</span></li> -->
                  <!-- <li><span class="am-u-sm-4">当前状态</span><span class="am-u-sm-8">{{m.action_Name}}&nbsp;</span></li> -->
                  <!-- <li><span class="am-u-sm-4">验收记录</span><span class="am-u-sm-8"></span></li> -->
                  <!-- <li><span class="am-u-sm-4">料单详情</span><span class="am-u-sm-8"></span></li> -->
                  <li>
                    <span class="am-u-sm-4">验收操作</span>
                    <div class="am-u-sm-8" ng-if="m.storage_status==-1&&m.mp.ischeckstorage==1">
                      <a href style="color:blue;" ng-click="warehouse($index, m.storage_status, m.mp.ischeckstorage)">入库验收</a>
                      <a href ng-if="m.material.classid=='精品植物'" style="color:blue;" ng-click="record($index, m.material.classid, m.resolveid, m.material.name)">填写苗木档案</a>
                    </div>
                    <div class="am-u-sm-8" ng-if="m.storage_status==1">
                      <p>全部完成</p>
                    </div>
                  </li>
                  <!-- <li>{{m.remark}}</li> -->
                </ul>
          		</div>
          	</a>
        	</li>
      </ul>
  </div>
</div>